package com.wgts.wgts.dagger.module;

import com.wgts.wgts.dagger.scope.ActivityScope;
import com.wgts.wgts.mvp.model.IWgtsMyTeamActivityModel;
import com.wgts.wgts.mvp.model.imp.WgtsMyTeamActivityModel;
import com.wgts.wgts.mvp.presenter.IWgtsMyTeamActivityPresenter;
import com.wgts.wgts.mvp.presenter.imp.WgtsMyTeamActivityPresenter;
import com.wgts.wgts.mvp.view.IWgtsMyTeamActivityView;
import com.wgts.wgts.netmodle.NetService;

import dagger.Module;
import dagger.Provides;

@Module
public class WgtsMyTeamActivityModule {

    private IWgtsMyTeamActivityView view;

    public WgtsMyTeamActivityModule(IWgtsMyTeamActivityView view) {
        this.view = view;
    }

    @Provides
    @ActivityScope
    public IWgtsMyTeamActivityView provideView(){
        return view;
    }

    @Provides
    @ActivityScope
    public IWgtsMyTeamActivityModel provideModel(NetService netService){
        return new WgtsMyTeamActivityModel(netService);
    }

    @Provides
    @ActivityScope
    public IWgtsMyTeamActivityPresenter providePresenter(IWgtsMyTeamActivityModel myTeamActivityModel, IWgtsMyTeamActivityView view){
        return new WgtsMyTeamActivityPresenter(view, myTeamActivityModel);
    }

}
